package io.kiki.sba.registry.store.api.elector;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Leader {
    private static final long INIT_EPOCH = -1L;
    public static final Leader HAS_NO_LEADER = new Leader(null, INIT_EPOCH, 0);
    //
    private final String leader;
    private final long epoch;
    private final long expireTimestamp;

    public Leader(String leader, long epoch, long expireTimestamp) {
        this.leader = leader;
        this.epoch = epoch;
        this.expireTimestamp = expireTimestamp;
    }

}
